Another subset of defensive programming is secure programming. In this form of
defensive programming, the primary concern is security. So the program may be allowed to fail in
certain ways, to avoid bugs or errors that could be exploited maliciously.
In Conclusion...
There are multiple approaches to defensive design in programming. Each having its advanatages and
drawbacks. As the programmer, you to decide which method best suits your goal, and to balance
the pros and cons of said method.